package com.by.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * 拦截器 拦截调用远程服务的请求  增加请求头  token
 */
public class TokenInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {
         template.header("token","asdfa.asdf.w34sdf");
    }
}
